package jcurses.widgets;

import jcurses.system.InputChar;

public interface IShortCutable extends IWritable {

	/**
	 * This method returns a list of short cut chars, that the widget want to
	 * handle. If a char from the list is typed by user, it will be handled
	 * always my this widget not bei the widget currenty having focus, except
	 * the having focus widget handles ALL chars and tells this throuth the
	 * method <code>handleAllPrintableChars</code>. To enable shortcuts for a
	 * new widget, you must override this method.
	 */
	InputChar getShortCut();

	/**
	 * Set's button's shortcut char. If this shortcut is typed, than the button
	 * will handle the char, as described by <code>Widget</code>, and generate
	 * an Event as whether the button would be 'clicked'.
	 */
	void setShortCut(char c);

}
